﻿<Window x:Class="HeadLinx.AD.Explorer.MainMenuWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="HeadLinx AD Main Menu"
        Width="300"
        Height="258"
        WindowStartupLocation="CenterScreen"
        ResizeMode="NoResize"
        FontSize="12"
        Loaded="Window_Loaded">

    <Grid Name="mainGrid"
          Background="SteelBlue">
        <Grid.RowDefinitions>
            <RowDefinition Name="rowMenu"
                           Height="Auto"></RowDefinition>
            <RowDefinition Name="rowInfo"
                           Height="Auto"></RowDefinition>
            <RowDefinition Name="rowButtons"
                           Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <Menu Name="mainMenu"
              Grid.Row="0"
              IsMainMenu="True">
            <MenuItem Header="File">
                <MenuItem Name="mnuOpenFile"
                          Header="_Open Saved Chart..."
                          Click="mnuOpenFile_Click">
                </MenuItem>
                <MenuItem Name="mnuBrowsePhotoCache"
                          Header="Browse Photo _Cache..."
                          Click="mnuBrowsePhotoCache_Click">
                </MenuItem>
                <MenuItem Name="mnuExit"
                          Header="E_xit"
                          Click="mnuExit_Click">
                </MenuItem>
            </MenuItem>
            <MenuItem Header="Settings">
                <MenuItem Name="mnuPhotoCacheSettings"
                          Header="Photo Cache Settings..."
                          Click="mnuPhotoCacheSettings_Click">
                </MenuItem>
                <MenuItem Name="mnuResetSettings"
                          Header="Reset Settings"
                          Click="mnuResetSettings_Click">
                </MenuItem>
            </MenuItem>
            <MenuItem Header="Help">
                <MenuItem Name="mnuAbout"
                          Header="About HeadLinx"
                          Click="mnuAbout_Click">
                </MenuItem>
            </MenuItem>
        </Menu>
        <StackPanel Name="upperStatusPanel"
                    Orientation="Horizontal"
                    HorizontalAlignment="Right"
                    Margin="0,0,0,10"
                    Grid.Row="1">
            <StackPanel.Resources>
                <Style TargetType="TextBlock">
                    <Setter Property="Height"
                            Value="Auto" />
                    <Setter Property="Margin"
                            Value="0,5,10,10"/>
                    <Setter Property="VerticalAlignment"
                            Value="Top" />
                    <Setter Property="TextAlignment"
                            Value="Right" />
                    <Setter Property="FontSize"
                            Value="11" />
                    <Setter Property="FontFamily"
                            Value="Arial" />
                    <Setter Property="FontWeight"
                            Value="Normal" />
                    <Setter Property="HorizontalAlignment"
                            Value="Right" />
                    <Setter Property="Foreground"
                            Value="Ivory" />
                </Style>
            </StackPanel.Resources>
            <StackPanel.ContextMenu>
                <ContextMenu>
                    <MenuItem Name="mnuSetRunningAs"
                              Header="Set running as user..."
                              Click="mnuSetRunningAs_Click" />
                </ContextMenu>
            </StackPanel.ContextMenu>
            <TextBlock Margin="0,5,0,5">Running as: </TextBlock>
            <TextBlock Name="txtRunningAs"
                       Margin="2,5,10,5"
                       Text="[userName]"></TextBlock>
        </StackPanel>
        <StackPanel Name="buttonsPanel"
                    Grid.Row="2">
            <Button Margin="20,5"
                    Padding="5,3"
                    Name="btnPeopleLinks"
                    FontFamily="Verdana"
                    FontSize="14"
                    VerticalAlignment="Top"
                    Click="btnPeopleLinks_Click">People Link...</Button>
            <Button Margin="20,5"
                    Padding="5,3"
                    Name="btnMyPeers"
                    FontFamily="Verdana"
                    FontSize="14"
                    VerticalAlignment="Top"
                    Click="btnMyPeers_Click">My Peers</Button>
            <Button Margin="20,5"
                    Padding="5,3"
                    Name="btnMySuperiors"
                    FontFamily="Verdana"
                    FontSize="14"
                    VerticalAlignment="Top"
                    Click="btnMySuperiors_Click">My Superiors</Button>
            <Button Margin="20,5"
                    Padding="5,3"
                    Name="btnMyReports"
                    FontFamily="Verdana"
                    FontSize="14"
                    VerticalAlignment="Top"
                    Click="btnMyReports_Click">My Direct Reports</Button>

       </StackPanel>
    </Grid>
</Window>
